Dear all,
I am writing a stata program in which I would like to take as arguments a list of numerical values and additonally have optional options. I want to display all inputs (later I want to export them to pyhton as an array with the python modul).
Once, I call the argument `0' which shows all inputs, the optional inputs are not known anymore.
If I run the following code, there is no problem:
Output
Once I specify an option I get an error:
Output:
Does anyone know what is happening here or where I might find some information on how to deal with this problem?
Best,
Jan
I am writing a stata program in which I would like to take as arguments a list of numerical values and additonally have optional options. I want to display all inputs (later I want to export them to pyhton as an array with the python modul).
Once, I call the argument `0' which shows all inputs, the optional inputs are not known anymore.
Code:
program define test5 version 17 syntax anything [, Number(int 5)] dis `0' dis `number' end
Code:
test5 1 1
Code:
11 5
Code:
test5 1 1, number(8)
Code:
11 unknown function number()
Best,
Jan
Comment